/*
 * @Date: 2023-01-22 02:17:37
 * @LastEditors: 恶名扬 2080156129@qq.com
 * @LastEditTime: 2023-01-22 07:35:17
 * @FilePath: \campus-repair-platform\server\schema\reception\feedback.js
 */
/**
 * submit_schema  提交意见反馈
 */

const joi = require("joi")

const { f_title: title, name } = require("../common")
const content = joi.string().max(255).error(new Error("内容有误"))

exports.submit_schema = {
  body: {
    title: title.required(),
    content: content.required(),
  },
}
